package com.bafa.util.comparators;

import java.util.Comparator;

import com.bafa.objects.Match;
import com.bafa.objects.Score;

public class ScoreByDateComparator implements Comparator {

	public int compare(Object arg0, Object arg1) {
		Score match1 = (Score)arg0;
		Score match2 = (Score)arg1;
		int compare = match1.getDate().compareTo(match2.getDate());
		if(compare==0){
			compare = 1;
		}
		return compare;
	}

}
